import {State} from "@/store";

export const userStore: object = {
    state: {
        userListInfo: {
            'query': '',
            'pagenum': 1,
            'pagesize': 5,
        },
        total: 0
    },
    getters: {
        getUserListInfo: (state: State) => {
            return state.userListInfo
        },
        getTotal: (state: State) => {
            return state.total
        }
    },
    mutations: {
        setTotal: (state: State, payload: number) => {
            state.total = payload
        },
    }
}